﻿using YNTK.Common.Const;
using SqlSugar;

namespace YNTK.SimpleWorkflow.Entitys
{
    /// <summary>
    /// 通用简易工作流审核记录相关附件
    /// </summary>
    [SugarTable("workflow_auditrecordfiles")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class SimpleWorkflowAuditRecordFilesEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(ColumnName = "F_Id", ColumnDescription = "id")]
        public string Id { get; set; }

        /// <summary>
        /// 所属工作流id
        /// </summary>
        [SugarColumn(ColumnName = "F_WorkflowId", ColumnDescription = "所属工作流id")]
        public string WorkflowId { get; set; }

        /// <summary>
        /// 审核节点id
        /// </summary>
        [SugarColumn(ColumnName = "F_NodeId", ColumnDescription = "审核节点id")]
        public string NodeId { get; set; }

        /// <summary>
        /// 审核记录id
        /// </summary>
        [SugarColumn(ColumnName = "F_AuditRecordId", ColumnDescription = "审核记录id")]
        public string AuditRecordId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorTime", ColumnDescription = "创建时间")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 文件id
        /// </summary>
        [SugarColumn(ColumnName = "F_FileId", ColumnDescription = "文件id")]
        public string FileId { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        [SugarColumn(ColumnName = "F_FileName", ColumnDescription = "文件名称")]
        public string FileName { get; set; }

        /// <summary>
        /// 存储文件名
        /// </summary>
        [SugarColumn(ColumnName = "F_SaveFileName", ColumnDescription = "存储文件名")]
        public string SaveFileName { get; set; }

        /// <summary>
        /// 文件后缀
        /// </summary>
        [SugarColumn(ColumnName = "F_Extension", ColumnDescription = "文件后缀")]
        public string Extension { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        [SugarColumn(ColumnName = "F_Size", ColumnDescription = "文件大小")]
        public long Size { get; set; }

        /// <summary>
        /// 文件大小以B，KB，GB，TB形式显示
        /// </summary>
        [SugarColumn(ColumnName = "F_FileSize", ColumnDescription = "文件大小以B，KB，GB，TB形式显示")]
        public string FileSize { get; set; }

        /// <summary>
        /// 文件存储目录
        /// </summary>
        [SugarColumn(ColumnName = "F_FileDirectory", ColumnDescription = "文件存储目录")]
        public string FileDirectory { get; set; }
    }
}
